// Package dao
// @Author Spume
// @Date 2024-11-20 16:07

package api

import (
	"github.com/gogf/gf/v2/database/gdb"
)

func SetIsAll(tx *gdb.Model, in *PageLstReq) (result *gdb.Model) {
	if params := in.Wheres.Get("isAll"); params.IsEmpty() || params.Int() == 0 {
		tx = tx.Page(in.Page, in.Limit())
	}
	return tx
}
